use yew::prelude::*;

pub struct IndexPage {}

impl Component for IndexPage {
    type Message = ();
    type Properties = ();

    fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
        IndexPage {}
    }

    fn update(&mut self, _: Self::Message) -> bool {
        false
    }

    fn view(&self) -> Html {
        html! {
            <div>
                <h3>{ "欢迎使用我们的卡拉OK系统!" }</h3>
                <p>{ "将歌曲添加到队列或立即播放." }</p>
            </div>
        }
    }
}
